package echat.future.cn.echat.my.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import echat.future.cn.echat.R;
import echat.future.cn.echat.my.bean.RemindUserBean;
import echat.future.cn.echat.my.utils.ImageLoadUtils;

/**
 * 推荐主播
 */
public class RemindZhuboAdapter extends BaseQuickAdapter<RemindUserBean,BaseViewHolder> {
    public RemindZhuboAdapter(@Nullable List<RemindUserBean> data) {
        super(R.layout.item_remind_zhubo,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RemindUserBean item) {
        ImageLoadUtils.loadImage(mContext,item.getAvatar(),helper.getView(R.id.head));
        helper.setText(R.id.name,item.getUsername()+"")
                .setText(R.id.time,item.getCon_num())
                .setText(R.id.contribution,item.getCon_num());
    }
}
